package com.dragon.manage.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.dragon.manage.bean.AmusementInfo;
import com.dragon.manage.bean.ManageUser;
import com.dragon.manage.bean.MatchInfo;

/**
 * 竞猜管理接口
 * @author 34225_000
 *
 */
public interface IManageFinanceService {
	
	/**
	 * 获取当前还未结束的比赛
	 */
	public JSONObject getBeginMatchList(int type,int page) throws Exception ;
	
	/**
	 * 
	 * 结算比赛
	 * @param matchId
	 * @param settleType  4是作废下注，3是正常结算
	 * @throws Exception
	 */
	public JSONObject settleMatch(int matchId,int settleType) throws Exception ;
	
	/**
	 * 获取竞猜的列表
	 * @param matchId
	 * @return
	 * @throws Exception
	 */
	public JSONArray getAmusementInfoList(int matchId) throws Exception;
	
	/**
	 * 获取对应状态的比赛
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public MatchInfo getMatchInfoById(int id) throws Exception;
	
	/**
	 * 获取竞猜信息
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public AmusementInfo getAmusementInfoById(int id) throws Exception;
	
	/**
	 * 审核结果
	 * @param amusementInfoId
	 * @param amusementResult
	 * @return
	 * @throws Exception
	 */
	public int checkResult(int amusementInfoId,int amusementResult)  throws Exception;
	
	/**
	 * 提交二次审核结果
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int submitResult(int id,ManageUser manageUser)  throws Exception;
	
	/**
	 * 驳回结果
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int rejectResult(int id,ManageUser manageUser)  throws Exception;
	
	/**
	 * 获取待结算的列表
	 * @param type
	 * @return
	 * @throws Exception
	 */
	public JSONObject getAwardDistributionList(int type, int page)  throws Exception;
	
	/**
	 * 获取白名单用户
	 * @return
	 * @throws Exception
	 */
	public JSONObject getWhiteUserList(int page)  throws Exception;
	
	/**
	 * 增加白名单用户
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public JSONObject addWhiteUser(int userId)  throws Exception;
	
	/**
	 * 添加白名单用户的金币
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public JSONObject addWhiteUserMoney(int userId,int amount,int manageId)  throws Exception;
	
	/**
	 * 返回用户信息
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public JSONObject getUserInfo(int userId)  throws Exception;
	
	
	public JSONObject getActiveList(int page)  throws Exception;
	
	public JSONObject getActivityOptionList(int activityId) throws Exception;
	
	public JSONObject updateActivityOption(int id,int resultId)  throws Exception;
	
	public JSONObject overActivityOption(int activityId) throws Exception;
	
	public JSONObject activityAwardList(int page) throws Exception;
	
	public JSONObject guessWinnerList(int activeId,int page) throws Exception;
	
	
	public JSONObject updateActivityWinner(int userBetId,String CDK) throws Exception;
	

}
